#pragma once
#include "InputPin.h"
#include <queue>


class OutputPin
{
public:
	OutputPin(void);
	~OutputPin(void);
public:
	bool   connect(InputPin* input_pin,bool shared_buf = true);
	Result enqueue(MediaData* data);		//false maybe buf is full
	bool   flush();
private:
	bool m_connected;
	std::queue<MediaData*>* m_buf; 	

};

